package cn.initcap.designpattern.principle.singleresponsibility;

/**
 * @author initcap
 * @date 2018/8/28 AM9:17
 */
public class Bird {

    private static final String OSTRICH = "鸵鸟";

    public void mainMoveMode(String birdName) {
        if (OSTRICH.equals(birdName)) {
            System.out.println(birdName + "用脚走");
        } else {
            System.out.println(birdName + "用翅膀飞");
        }
    }
}
